<header id="page-header"> 
    <h1>Mail</h1> 
</header>

<div id="content">

    <h3>Mail Gönder</h3>

    <?php echo form_open(NULL, 'id="send_mail" class="crud ajaxform"') ?>
    <fieldset>
        <ol>

            <li>
                <label>Gurup Seçiniz</label>

                <?php if ($groups): ?>
                    <div class="multi_selectbox">
                        <?php foreach ($groups as $key => $value): ?>
                            <p><input type="checkbox" name="groups[]" value="<?php echo $key ?>" /> <?php echo $value ?></p>
                        <?php endforeach ?>
                    </div>
                <?php else: ?>
                    <div class="notification warning">
                        <strong>Hiç gurup yok!</strong>
                    </div>
                <?php endif ?>
            </li>
            
            <li>
                <label>Gurup Seçiniz</label>

                <?php if ($genders): ?>
                    <div class="multi_selectbox">
                        <?php foreach ($genders as $key => $value): ?>
                            <p><input type="checkbox" name="genders[]" value="<?php echo $key ?>" /> <?php echo $value ?></p>
                        <?php endforeach ?>
                    </div>
                <?php else: ?>
                    <div class="notification warning">
                        <strong>Hiç gurup yok!</strong>
                    </div>
                <?php endif ?>
            </li>            

            <li>
                <label>Şablon Seçiniz</label>
                <?php echo form_dropdown('template_id', $templates); ?>
            </li>

            <li>
                <label>Mail Konusu</label>
                <input type="text" name="subject" />
            </li>

            <li>
                <label>Kimden İsim / Email</label>
                <input type="text" name="from_name" value="" id="from_name"/> / 
                <input type="text" name="from_email" value="" id="from_email"/>
            </li>
            
            <li>
            	<label for="">Cevap İsim / Email</label>
            	<input type="text" name="reply_name" value="" id="reply_name"/> / 
            	<input type="text" name="reply_email" value="" id="reply_email"/>
            </li>
            
            <li>
                <label>Ek Dosya</label>
                <input type="file" name="userfile" value="" id="userfile"/>
            </li>
            
            <li>	
                <label></label>			
                <input type="submit" value="Ekle" />
            </li>

        </ol>
    </fieldset>

    <?php echo form_close() ?>

</div><!-- // #content -->